# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname='python-svgutils'
_pkgname='svgutils'
pkgver=0.3.4
pkgrel=5
pkgdesc='Create and manipulate SVG files.'
arch=('any')
url='URL pointing to download section of package'
license=('MIT')
depends=('python' 'python-nose' 'python-numpydoc' 'python-sphinx'
         'python-sphinx_rtd_theme' 'python-matplotlib' 'python-lxml')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('77496e3d27526af95094901c073023b29b59543f78d0bf5353072359174612d8b8e6fdfaa3e4e33fcc4055ee89d208e44f7a66c81a89dfc7a3d4a4d8f0ca6228')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

